//
//  RXCurrencyFormatTextField.h
//  RXFrame
//
//  Created by srxboys on 2021/4/21.
//

#import <RXFrame/RXBlockTextField.h>

NS_ASSUME_NONNULL_BEGIN

@interface RXCurrencyFormatTextFieldHandler : RXBlockTextFieldHandler
{
    NSString    *previousTextFieldContent; /// 上一次输入的内容
    UITextRange *previousSelection;        /// 上一次的输入区域
}
@property (nonatomic, assign) BOOL enablePoint; /// 是否可以用小数

@end


/// 货币格式化  -> 1，000.00     1,000,000.00
@interface RXCurrencyFormatTextField : RXBlockTextField

@property (nonatomic, strong, readonly) RXCurrencyFormatTextFieldHandler *currencyHandler;

@property (nonatomic, assign) BOOL enablePoint;
@property (nonatomic, strong) UIFont *placeholderFont;

@end

NS_ASSUME_NONNULL_END
